package com.demo.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	

	public static void main(String[] args) {
		
	
		ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
		System.out.println("application context initilized successfully..");
		
		//aware interfaces..
		
		//scope . singleton, prototype..
		
   Draw draw=		context.getBean("draw",Draw.class);

   
     
    System.out.println("List of bean name that have been initilized are : "+ ApplicationUtils.BEANNAME_LIST);
   

     draw.draw();
     System.out.println(ApplicationUtils.BEANNAME_LIST);
		
	}
}
